import request from '@/utils/request'

// 查询内容同步记录列表
export function listSynchData(query) {
  return request({
    url: '/system/synchData/list',
    method: 'get',
    params: query
  })
}

// 查询内容同步记录详细
export function getSynchData(id) {
  return request({
    url: '/system/synchData/' + id,
    method: 'get'
  })
}

// 新增内容同步记录
export function addSynchData(data) {
  return request({
    url: '/system/synchData',
    method: 'post',
    data: data
  })
}

// 修改内容同步记录
export function updateSynchData(data) {
  return request({
    url: '/system/synchData',
    method: 'put',
    data: data
  })
}

// 删除内容同步记录
export function delSynchData(id) {
  return request({
    url: '/system/synchData/' + id,
    method: 'delete'
  })
}

export function cleanSynchData(){
    return request({
      url: '/system/synchData/clean',
      method: 'delete'
    })
}
